import echarts from "echarts"
export default {
    // color: ['#fff'],
    textStyle:{
        color:'#fff'
    },
    title:{
        text:'单位：个',
        left:20,
        top:0,
        textStyle:{
            color:'#fff',
            fontSize:14,
        }
    },
    tooltip: {
        trigger: 'axis',
        axisPointer: {            // 坐标轴指示器，坐标轴触发有效
            type: 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
        }
    },
    grid: {
        left: 0,
        right: 20,
        top:20,
        bottom: 0,
        containLabel: true
    },
    xAxis: [
        {
            type: 'value',
            // data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
            splitLine:{show: false},
        }
    ],
    yAxis: [
        {
            type: 'category',
            data:[
                '9月',
                '10月',
                '11月',
                '12月',
                '1月',
            ]
        }
    ],
    series: [
        {
            type: 'bar',
            barWidth: 12,
            data: [10, 52, 200, 334, 390, 330, 220],
            itemStyle: {
                emphasis: {
                    barBorderRadius: 7
                },
                normal: {
                    barBorderRadius: 7,
                    color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
                        offset: 0,
                        color: '#05A5A7'
                    }, {
                        offset: 1,
                        color: '#12D39F'
                    }])
                }
            }
        
        }
    ]
};